module.exports = {
    get: {
        index: function (req, res) {
            if (req.pathname == '/') {
                if (req.session.get('account') == null) {
                    res.view('/assets/home/login.html', {ip: req.getClientIp()});
                } else {
                    res.view('/assets/home/index.html');
                }
            } else {
                res.view('/assets/home/index.html');
            }
        }
    }
};